
package com.treeman.navi.marker;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;
import com.treeman.utilities.Utilities;


public class MarkerItem extends OverlayItem
{

    private GeoPoint geoPoint;

    private Marker marker = null;


    public MarkerItem(Marker marker)
    {
	super(Utilities.getGeoPoint(marker.getLatitude(), marker.getLongitude()), marker.getName(), marker.getDescription());
	setPoint(Utilities.getGeoPoint(marker.getLatitude(), marker.getLongitude()));
	setMarker(marker);
    }

    @Override
    public GeoPoint getPoint()
    {
	return geoPoint;
    }

    public void setPoint(GeoPoint geoPoint)
    {
	this.geoPoint = geoPoint;
    }

    public Marker getMarker()
    {
	return marker;
    }

    public void setMarker(Marker marker)
    {
	this.marker = marker;
    }

}
